import { createSlice } from "@reduxjs/toolkit";

const layoutSlice=createSlice({
    name:"layout",
    initialState:{
        collapsed:false
    },reducers:{
        setCollapsed(state,actions){
            state.collapsed=actions.payload;
        }
    }
})
const {setCollapsed}=layoutSlice.actions;
export {setCollapsed};
export default layoutSlice.reducer;